package com.net.xpay.web.vo;

import com.net.xpay.core.enums.PayTransBatchStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 2020/5/11 15:50

 */
@Getter
@Setter
@NoArgsConstructor
public class PayTransBatchVo {

    @ApiModelProperty(notes = "id")
    private Long id;  //唯一Id

    @ApiModelProperty(notes = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(notes = "更新时间")
    private LocalDateTime modifyTime;

    @ApiModelProperty(notes = "用户id")
    private Long userId;

    @ApiModelProperty(notes = "注册手机号")
    private String mobile;

    @ApiModelProperty(notes = "免费 新用户测试送的 不扣钱")
    private Boolean free;

    @ApiModelProperty(notes = "支付宝账号id")
    private Long alipayUserId;

    @ApiModelProperty(notes = "支付宝账号")
    private String alipayNickName;

    @ApiModelProperty(notes = "导入的商户的批次号 非必选")
    private String importBatchNo;

    @ApiModelProperty(notes = "支付宝发起支付后返回的 支付宝批次订单号")
    private String batchTransId;

    @ApiModelProperty(notes = "最后一次交易的汇总记录id")
    private Long lastSummaryId;

    @ApiModelProperty(notes = "最后一次发起的付款链接")
    private String lastPayUrl;

    @ApiModelProperty(notes = "最后一次发起的移动端付款链接")
    private String lastMobilePayUrl;

    @ApiModelProperty(notes = "生成的移动端付款二维码")
    private String mobilePayQrCode;

    @ApiModelProperty(notes = "上传的文件保存链接")
    private String fileUrl;

    @ApiModelProperty(notes = "文件过期时间")
    private LocalDateTime fileExpired;

    @ApiModelProperty(notes = "服务费 分")
    private Long servicePrice;

    @ApiModelProperty(notes = "服务费单价 分")
    private Long serviceUnitPrice;

    @ApiModelProperty(notes = "平台实际服务费 分")
    private Long serviceRealPrice;

    @ApiModelProperty(notes = "批次总金额，单位为元，精确到小数点后两位，取值范围[0.01,9999999999999.99]  必选")
    private String totalTransAmount;

    @ApiModelProperty(notes = "批次总笔数 10 必选")
    private Long totalCount;

    @ApiModelProperty(notes = "成功金额 单位为元")
    private String successAmount;

    @ApiModelProperty(notes = "成功笔数")
    private Long successCount;

    @ApiModelProperty(notes = "失败金额")
    private String failedAmount;

    @ApiModelProperty(notes = "失败笔数")
    private Long failCount;

    @ApiModelProperty(notes = "转账标题，用于收银台展示标题 报销付款 必选")
    private String orderTitle;

    @ApiModelProperty(notes = "业务备注 非必选")
    private String remark;

    @ApiModelProperty("状态")
    private PayTransBatchStatus status;

    @ApiModelProperty(notes = "完成时间")
    private LocalDateTime endTime;

    @ApiModelProperty(notes = "服务费退款金额 分")
    private Long refund;

    @ApiModelProperty(notes = "服务费退款明细Id")
    private Long refundId;

}
